home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_60082.txt < prev    next >
Text File  |  1991-02-27  |  2KB  |  38 lines

  1. -- card: 60082 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. additional variables and methods or redefine ("override") an existing method.  TC provides the 'inherited' keyword ΓÇö not available in C++ ΓÇö to simplify access to the original method from within an overriding definition.
  11.  
  12. The scope resolution operator :: is used when defining methods and when calling methods without refering to a particular object.  The 'this' identifier is used to refer to the object receiving a message.
  13.  
  14. Significantly, object identifiers are usually implemented as Macintosh "handles" in TC, which requires care to be taken when taking the address of instance variables or when dynamically allocating elements of an array of instance variables*.  This is not generally the case with C++.
  15.  
  16. TC extends ANSI C with a few non-object-oriented features.  TC provides the new storage class 'pascal' and allows Pascal string definitions since the Macintosh Toolbox ROM routines use Pascal calling conventions.  TC also provides a special feature to avoid file reinclusion**, especially useful with object-oriented programs.  TC supplies extensive specialized libraries for Macintosh programming.
  17.  
  18. -- part contents for background part 29
  19. ----- text -----
  20. 38494
  21. 54516
  22.  
  23. -- part contents for background part 27
  24. ----- text -----
  25. Macintosh handles
  26. File reinclusion
  27.  
  28. -- part contents for background part 20
  29. ----- text -----
  30. Macintosh handles - p123
  31.  
  32. -- part contents for background part 7
  33. ----- text -----
  34. 217
  35.  
  36. -- part contents for background part 23
  37. ----- text -----
  38. File reinclusion - p177